<%@ Page Language="C#" MasterPageFile="~/Board.Master" AutoEventWireup="true" CodeBehind="ActiveTopics.aspx.cs" Inherits="UserInterface.ActiveTopics" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder" runat="server">
    <cc:Repeater runat="server" ID="TopicRepeater" OnItemDataBound="TopicRepeater_ItemDataBound">
        <HeaderTemplate>
            <table class="list-table">
                <tr>
                    <th class="forum-width"><%= Resources.Resource.Forum %></th>
                    <th class="topic-title-width"><%= Resources.Resource.Topic %></th>
                    <th class="author-width"><%= Resources.Resource.Author %></th>
                    <th class="post-count-width"><%= Resources.Resource.Replies %></th>
                    <th class="last-post-width"><%= Resources.Resource.LastPost %></th>
               </tr>  
        </HeaderTemplate>
        <ItemTemplate>
                <tr>
                    <td class="default-column"><a href="ViewForum.aspx?forumId=<%# Eval("Forum.Id")%>"><%# Eval("Forum.Name") %></a></td>
                    <td class="default-column">
                        <a href="ViewTopic.aspx?topicId=<%# Eval("Id") %>" class="view-topic-link"><asp:Image ID="TopicTypeImage" runat="server"/> <span><%# Eval("Subject") %></span></a>
                    </td>
                    <td class="default-column"><%# Eval("StartMessage.Poster.Username") %></td>
                    <td class="default-column"><%# Eval("NumberOfReplies") %></td>
                    <td class="default-column"><a class="small-text" href="ViewTopic.aspx?topicId=<%# Eval("Id") %>&amp;messageId=<%# Eval("LastMessage.Id") %>#message_<%# Eval("LastMessage.Id") %>"><img src="Templates/Default/Images/Icons/last-post.gif" alt=""><span><%# Eval("LastMessage.PostDateTime") %></span></a></td>
                </tr>
        </ItemTemplate>
        <FooterTemplate>
            </table>
        </FooterTemplate>
        <EmptyTemplate>
            <%=GetLocalResourceObject("NoTopicsFound")%>
        </EmptyTemplate>
    </cc:Repeater>
</asp:Content>